using System;
using UnityEngine;

public class ShuicheRot3D : MonoBehaviour
{
    [Header("水车轮子引用")]
    [SerializeField] Transform wheel;

    [SerializeField] private float rotSpeed;

    private void Update()
    {
        wheel.rotation = Quaternion.Euler(0,0,wheel.eulerAngles.z + rotSpeed * Time.deltaTime);
        
    }
}
